package functionalInterface;

public class functionalInterfaceDemo {

	public static void main(String[] args) {
//		startThread(new Runnable() {
//
//			@Override
//			public void run() {
//				System.out.println("多线程启动了");
//				
//			}
//			
//		});
		
		startThread(()->{
			System.out.println(Thread.currentThread().getName()+"多线程启动了");
		});
		

	}
	public static void startThread(Runnable run) {
		new Thread(run).start();
	}

}
